package commands;

import bot.CommandBot;


public class Crap implements Command {

	@Override
	public String getCommandName() {
		return "never";
	}

	@Override
	public boolean execCommand(String channel, String sender, String login,
			String hostname, String message, CommandBot bot) {
		if (message.toLowerCase().startsWith(" gonna")) {
			bot.sendMessage(
					channel,
					"give you up, never gonna let you down Never gonna run around and desert you Never gonna make you cry, never gonna say goodbye Never gonna tell a lie and hurt you. Never gonna give you up, never gonna let you down Never gonna run around and desert you Never gonna make you cry, never gonna say goodbye Never gonna tell a lie and hurt you. Never gonna give you up, never gonna let you down Never gonna run around and desert you Never gonna make you cry, never gonna say goodbye Never gonna tell a lie and hurt you.");
			return true;
		}
		return false;
	}

	@Override
	public boolean execCommand(String sender, String login, String hostname,
			String message, CommandBot bot) {
		return troll(sender,message,bot);
	}
	
	public boolean troll(String sendTo, String message, CommandBot bot) {
		if (message.toLowerCase().startsWith(" gonna")) {
			bot.sendMessage(
					sendTo,
					"give you up, never gonna let you down Never gonna run around and desert you Never gonna make you cry, never gonna say goodbye Never gonna tell a lie and hurt you. Never gonna give you up, never gonna let you down Never gonna run around and desert you Never gonna make you cry, never gonna say goodbye Never gonna tell a lie and hurt you. Never gonna give you up, never gonna let you down Never gonna run around and desert you Never gonna make you cry, never gonna say goodbye Never gonna tell a lie and hurt you.", true);
			return true;
		}
		return false;
	}
}
